<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.tietiao.com/functions" prefix="my"%>
<div class="batch">
	<button type="button" class="button sign" onclick="attenAllFriend(this);return false;" id="attenAllFriendId">批量贴条</button>
</div>
<form id="attenFormId">
<dl class="part-full" id="part_full">
	<c:forEach items="${sysUsers}" var="friend">
		<input name="id" value="${friend.userId}" type="hidden">
		<c:set value="${my:eachOtherAtten(friend.userId,midUserAttention)}" var="attenType"/>
		<dd><a href="friend_friends_home.htm?userId=${friend.userId}" class="cb-pp">
			<img width="120" height="120" src="${rootPicPath}${friend.userPhoto}">${friend.petName}</a>
			<p>${friend.signature}</p>
			<c:choose>
				<c:when test="${attenType==1}">
					<div class="tie-stuff-list"><span class="myself">本人</span></div>
				</c:when>
				<c:when test="${attenType==2 or attenType==4}">
					<div class="tie-stuff-list"><a class="followeo" href="javascript:cancelFriend('${friend.userId}',this)" id="user_${friend.userId}">互相贴条</a></div>
				</c:when>
				<c:otherwise>
					<div class="tie-stuff-list"><a class="follow" href="javascript:showGroup('${friend.userId}',this)" id="user_${friend.userId}">贴条</a></div>
				</c:otherwise>
			</c:choose>
		</dd>
	</c:forEach>
</dl>
</form>